 {

        var o = require("./UISoundManager.js"), i = require("./UIPopupBase.js");
        cc.Class({
            extends: i,
            properties: {
                toggleGroup: cc.ToggleGroup
            },
            init: function () {
            },
            onLoad: function () {
                this.defaultSelectIndex = 0, this.toggleItems = this.toggleGroup.node.children,
                    this.ruleSpf = null, this.setSelectToggleUI();
            },
            onClickToggle: function (e) {
                o.playEffect("select"), this.defaultSelectIndex = e.target.getSiblingIndex(), this.setSelectToggleUI();
            },
            setSelectToggleUI: function () {
                for (var e = this, t = 0; t < this.toggleItems.length; t++) {
                    var n = this.toggleItems[t], o = n.getChildByName("titleSp"), i = n.getChildByName("labTitle");
                    if (t == this.defaultSelectIndex) n && function () {
                        var t = n.getComponent(cc.Sprite), a = n.getChildByName("scrollView");
                        Global.spriteAtlas.setSpriteFrame(t, "Texture/common", "SJB_JB_xuanzhong"), a.active = !0,
                            o.active = !0, i.active = !1;
                        var r = a.getComponent(cc.ScrollView).content.getChildByName("sp").getComponent(cc.Sprite);
                        if (r) if (e.ruleSpf) r.spriteFrame = e.ruleSpf; else {
                            var s = Global.config.resUrl + "/rule/JSMJ_suanfan.png?md5=" + cc.sys.now();
                            cc.loader.load(s, function (e, t) {
                                if (null == e) {
                                    var n = new cc.SpriteFrame(t);
                                    r.spriteFrame = n, this.ruleSpf = n;
                                }
                            }.bind(e));
                        }
                    }(); else if (n) {
                        var a = n.getComponent(cc.Sprite), r = n.getChildByName("scrollView");
                        Global.spriteAtlas.setSpriteFrame(a, "Texture/common", "SJB_JB_xuanzhong"), r.active = !1,
                            o.active = !1, i.active = !0;
                    }
                }
            },
            OnPanelClose: function () {
                o.playEffect("select"), this.closePanel();
            }
        })
    }